package chapter02

import scala.collection.mutable

object Test37_Queue {
  def main(args: Array[String]): Unit = {
    //队列 先进先出
    val queue = mutable.Queue[String]()
    //进队
    queue.enqueue("a","b","c")
    println(queue.dequeue())
    println(queue.dequeue())
    println(queue.dequeue())
    val result1 = (0 to 100)
      .map{case _ => Thread.currentThread.getName}
    val result2 = (0 to 100)
      .par.map{case _ => Thread.currentThread.getName}
    println(result1)
    println(result2)
  }
}
